package com.sunday.player.util;

import android.content.Context;
import android.media.MediaPlayer;
import android.util.Log;
import android.widget.Toast;

public class playerControl {
    public static final String TAG = "sundayPlayer_";
    /** 한곡만 */
    public static final int repetition_one = 1;
    /** 리스트만  */
    public static final int repetition_oneList = 2;
    /** 전체 */
    public static final int repetition_All = 3;
    
    public static final String ServiceID = "com.sunday.player.service.PlayerService";
    final public static String BR_ACTION ="com.sunday.broadcast.ACTION";
    
    public static void showToast(Context context , String Msg){
	Toast.makeText(context, Msg, Toast.LENGTH_SHORT).show();
    }
    /**
     * 앱 최초 시작시 자동으로 mp3 검색
     * @return
     */
    public static boolean isFirstMp3Searsh(){
	return true;
    }
    public static void trace(String code , String Text){
	if(code.equals("e")){
	    Log.e("playerControl", Text);
	}else if(code.equals("i")){
	    Log.i("playerControl", Text);
	}else if(code.equals("d")){
	    Log.d("playerControl", Text);
	}else if(code.equals("w")){
	    Log.w("playerControl", Text);
	}else{
	    Log.i(playerControl.TAG+TAG, Text);
	}
    }
    public static void Trace_i(String text, String TAG){
	Log.i(playerControl.TAG+TAG, text);
    }
    
}
